package com.le.tester.javaThink.fifth.chapter14_StreamingProgramming;

import java.io.IOException;

/**
 * 描述：string中的Comparator
 */
public class Informational {
    public static void main(String[] args) throws IOException {
        System.out.println(FileToWords.stream("E:\\L.info\\L.Application\\L.Tester\\src\\main\\java\\com\\le\\tester\\java8\\doc\\Cheese.dat")
                .count());

        System.out.println(FileToWords.stream("E:\\L.info\\L.Application\\L.Tester\\src\\main\\java\\com\\le\\tester\\java8\\doc\\Cheese.dat")
                .min(String.CASE_INSENSITIVE_ORDER)
                .orElse("NONE"));

        System.out.println(FileToWords.stream("E:\\L.info\\L.Application\\L.Tester\\src\\main\\java\\com\\le\\tester\\java8\\doc\\Cheese.dat")
                .max(String.CASE_INSENSITIVE_ORDER)
                .orElse("NONE"));
    }
}
